<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加角色</title>
<script type="text/javascript">
	function chooseFunction() {
		window.open('chooseFunction.jsp');
	}
	function method01() {
		var formElement=document.getElementById('myform')
		with(formElement){
			action="${pageContext.request.contextPath }/servlet/addroleservlet";
			method="post";
			submit();
		}
	}
</script>
</head>
<body>
<form id="myform">
	角色名称：<input type="text" name="role_name"><br>
	<button onclick="chooseFunction()">选择权限</button>
	<textarea id="function" name="functions" rows="5" cols="30"></textarea><br>
	<input type="button" value="提交" onclick="method01()">
	<input type="reset" value="重置"> 
</form>
</body>
</html>